#ifndef _PROTOCOL_H__
#define _PROTOCOL_H__

#define PATHNAME "./protocol.h"
#define PROJID 0x00000001UL

#define PATHSIZE 128
#define DATASIZE 1024

enum{
    MSG_PARH = 1,
    MSG_DATA,
    MSG_EMPTY
};

typedef struct msg_path_st{
    long mtype;
    char path[PATHSIZE];
}msg_path_t;

typedef struct msg_data_st{
    long mtype;
    char data[DATASIZE];
    int data_len;
}msg_data_t;

typedef struct msg_empty_st{
    long mtype;
}msg_empty_t;

typedef union recv2send_un
{
    long mtype;
    msg_data_t data;
    msg_empty_t empty;
}recv2send_t;

#endif


